<?php

    /* settings.php: Defines global settings for your picopress installation.
    ---------------------------------------------------------------------------------------------
    */
        
    /* Set BASE_URL to the web address, where picopress is installed.
    */
    define('BASE_URL', 'http://yourserver.com/picopress');
    
    
    /* Set MOUNT_DIR to the data directory of your website. The default is 'site'.
       Don't use a leading slash unless you want to define an absolute path. 
    */
    define('MOUNT_DIR', 'site'); 


    /* Set FILES_DIR to the directory you want to store files in, that are referenced from your 
       .page-files. E.g. images, videos, PDF documents etc. The default is 'files'.
       (If you use the parser PicoLinks, you can reference this directory using the '#files:' 
       prefix)
    */    
    define('FILES_DIR', 'files'); 

    
    /* Set CACHE_DIR to the cache directory of your website. The default is 'cache'.
       Don't use a leading slash unless you want to define an absolute path. 
    */
    define('CACHE_DIR', 'cache'); 

    
    /* CACHING_LEVEL controls the caching mechanism. The number defines which type of caching
       is used for the website. The default is 0. Possible levels are:
       
       0 - caching is turned off
       1 - menu structure and configuration is cached
       2 - everything is cached

       (!) When changing to level 2 make sure you read the security related section "Securing your 
           website's data" in the file readme.txt.       
       (!) If you set a level > 0, make sure the directory "cache" is writable for the webserver.
           You have to delete all ".cache" files from the directory "cache" for changes to take 
           effect everytime you edited files in the folder "site". This applies to configuration 
           (config.php) and page files (example.page). Make sure to not delete .htaccess files
           while emptying the cache directory (e.g. use "rm *.cache" on the unix shell).
    */
    define('CACHING_LEVEL', 0);


    /* The NICE_URLS feature will make the URL 'http://yoursite.com/index.php?node=One/Two' become
       'http://yoursite.com/One/Two'. This is sometimes also referred to as 'search engine friendly
       URLs'. To enable this feature set NICE_URLS to true and rename 'htaccess.txt' in the main
       directory to '.htaccess'. Make sure you are allowed to configure your webserver with
       .htaccess files and use mod_rewrite.
    */ 
    define('NICE_URLS', false);
    
    

    /* It is not recommended to make changes below this line
    ---------------------------------------------------------------------------------------------
    */
    define('VERSION_STRING', 'picopress 0.1');
    define('PAGE_EXTENSION', '.page');
    define('LINK_EXTENSION', '.link');    
    define('INDEX_PAGE', 'index');
    define('CONFIG_FILE', 'config.php');
    define('CONTROLLER_FILE', 'index.php');   
    define('CACHE_EXTENSION', '.cache');     
?>
